package com.cc.card.feign;

import com.cc.user.entity.UserEntity;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("cc-user")
public interface UserFeign {
    @GetMapping("/user/user/getUserByMobileOrNickname")
    public UserEntity getUserByMobileOrNickname(@ApiParam("手机号") @RequestParam(value = "mobile",required = false) String mobile,
                                                @ApiParam("用户名") @RequestParam(value = "nickname",required = false) String nickname);
}
